package com.dd.shop4j.order.model;

import com.dd.shop4j.goods.model.GoodsInfo;



/**
 * order_details - 订单明细
 * 
 * @author 唐小恕 2013-08-29
 * @version 1.0 
 */
public class OrderDetails {
	
	//自定义字段 begin
	private GoodsInfo good;
	// 自定义字段 end
	
	/**
	 * int(0)
	 * 订单明细id
	 * 主键字段
	 * 字段不允许为空
	 */
	private Integer id;
	/**
	 * int(0)
	 * 订单id
	 */
	private Integer orderId;
	/**
	 * int(0)
	 * 商品id
	 */
	private Integer goodId;
	/**
	 * int(0)
	 * 产品id
	 */
	private Integer productId;
	/**
	 * double(0)
	 * 商品价格
	 */
	private Double price;
	/**
	 * double(0)
	 * 交易价格
	 */
	private Double salePrice;
	/**
	 * int(0)
	 * 数量
	 */
	private Integer number;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getGoodId() {
		return goodId;
	}

	public void setGoodId(Integer goodId) {
		this.goodId = goodId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}
	
	public GoodsInfo getGood() {
		return good;
	}
	
	public void setGood(GoodsInfo good) {
		this.good = good;
	}

}